package hc.bre.rest.cmn

import org.springframework.web.bind.annotation.ResponseBody

import groovy.transform.ToString

@groovy.transform.CompileStatic
@ToString
@ResponseBody
class ReturnResult{
	int error	//0 for success, others for some error
	def data

	ReturnResult(data)
	{
		this.data = data
	}

	ReturnResult(int errorcode, data)
	{
		this.error = errorcode
		this.data = data
	}

}